package com.usian.user.service;

import com.usian.model.user.dtos.UserRelationDto;
import com.usian.user.entity.ApUser;
import com.baomidou.mybatisplus.extension.service.IService;
import com.usian.user.entity.ApUserFollow;

/**
 * <p>
 * APP用户信息表 服务类
 * </p>
 *
 * @author usian
 * @since 2022-07-05
 */
public interface IApUserService extends IService<ApUser> {
//关注或取消
    void follow(UserRelationDto dto);

    /**
     * 根据用户id和关注作者的id查询
     * @param userId
     * @param followId
     * @return
     */
    ApUserFollow findByUserIdAndFollowId(Integer userId, Integer followId);

}
